<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddTitleToCmpInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('cmpInfo', function (Blueprint $table) {
            $table->string('title')->default('["选择来访事由","请填写来访信息","请填写被访人姓名"]')->after('status')->comment('ipad访客登记流程title，json字符串，例如：["第一步","第二步","第三步"]');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('cmpInfo', function (Blueprint $table) {
            //
        });
    }
}
